package com.jcp.service;

import java.util.List;

import com.jcp.entity.Attences;
import com.jcp.entity.OverTime;
import com.jcp.util.PageData;

public interface AttencesService {

	/**
	 * 根据工号查询考勤记录的service类
	 * 
	 * @param userId
	 *            int 工号
	 * @return List<Attences>
	 */
	PageData<Attences> selAttenceByUserIdByPage(int page, int pageSize, int userId);
	
	
	/**
	 * 查询加班时间前三名的方法
	 * @return List<OverTime>
	 */
	List<OverTime> selOverTime();
	

	List<Attences> attencessel1();
	List<Attences> attencessel2();
	List<Attences> attencessel3();
	List<Attences> attencessel4();
	
	List<Attences> Weekchidao1();
	List<Attences> Weekzaotui1();
	List<Attences> Weekjiaban1();
	List<Attences> Weekjiatime1();
	List<Attences> Weekzhengchang();
	
	

	// 戴布斯：插入打卡记录用
	boolean insertClock(Attences attences);

	// 戴布斯：查询用户当日打卡记录次数
	int clockNum(int userId);
}
